<template>
  <div class="dashboard-container">
    <component :is="currentRole" />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import adminDashboard from './admin'

export default {
  name: 'Dashboard',
  components: { adminDashboard },
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  data() {
    return {
      currentRole: 'adminDashboard'
    }
  },
}
</script>

<style lang="scss" scoped>
.dashboard-container{
  margin: 0!important;
  font-family: 微软雅黑, MicrosoftYahei, sans-serif; 
  color:#fff;
  // background: url(../../assets/images/bg.jpg);
  background-color: #253138;
  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
